import { axios } from '@/utils/request'

/**
 * 创建发文
 */
export function createIssued (obj) {
  return axios({
    url: '/issued/createIssued',
    method: 'POST',
    data: obj
  })
}

/**
 * 通过
 */
export function complete (obj) {
  return axios({
    url: '/issued/complete/' + obj.taskId,
    method: 'POST',
    data: obj
  })
}

/**
 * 终止
 */
export function finish (obj) {
  return axios({
    url: '/issued/finish/' + obj.taskId,
    method: 'POST',
    data: obj
  })
}

/**
 * 驳回
 */
export function reject (obj) {
  console.log(obj)
  return axios({
    url: '/issued/reject/' + obj.taskId,
    method: 'POST',
    data: obj
  })
}
